package com.yazi.mxz.gather.entity.http;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonRootName;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText;


/**
 * 坚强百货商城商品详情(商品属性)查询响应结果
 * <br/>http://jqbh.net/index.php/product-34776.html，结构样板(多个tr,每个tr有2倍个td)<br/>
 * <br/>&lt;table>
 * <br/>　&lt;tbody>
 * <br/>　　&lt;tr>
 * <br/>　　　&lt;td>&lt;div>货品编号：&lt;/div>&lt;/td>
 * <br/>　　　&lt;td>6926175601108&lt;/td>
 * <br/>　　　&lt;td>&lt;div>产地：&lt;/div>&lt;/td>
 * <br/>　　　&lt;td>中国&lt;/td>
 * <br/>　　&lt;/tr>
 * <br/>　&lt;/tbody>
 * <br/>&lt;/table>
 * 
 * @author mo_yq5
 * @date 2015-8-16
 */
@JsonRootName("table")
public class JqbhResBody4Param {
	Tbody tbody;
	
	public static class Tbody {
		@JacksonXmlElementWrapper(useWrapping = false)
		@JacksonXmlProperty(localName="tr")
		List<Tr> trs;

		public List<Tr> getTrs() {
			return trs;
		}

		public void setTrs(List<Tr> trs) {
			this.trs = trs;
		}
	}
	public static class Tr {
		@JacksonXmlElementWrapper(useWrapping = false)
		@JacksonXmlProperty(localName="td")
		List<Td> tds;

		public List<Td> getTds() {
			return tds;
		}

		public void setTds(List<Td> tds) {
			this.tds = tds;
		}
	}
	public static class Td {
		@JacksonXmlText
		String text;// 属性值
		Div div;
		public String getText() {
			return text;
		}
		public void setText(String text) {
			this.text = text;
		}
		public Div getDiv() {
			return div;
		}
		public void setDiv(Div div) {
			this.div = div;
		} 
	}
	public static class Div {
		@JacksonXmlText
		String text;// 属性名

		public String getText() {
			return text;
		}

		public void setText(String text) {
			this.text = text;
		}
	}
	public Tbody getTbody() {
		return tbody;
	}
	public void setTbody(Tbody tbody) {
		this.tbody = tbody;
	}
}
